import request from '@/utils/request'


export function businessList(data){
  return request({
    method:'get',
    url:'/tienchin/business/list',
    params:data
  })
}

//增
export function addBusiness(data){
return request({
  url:'/tienchin/business',
  method:'post',
  data:data
})
}
//渠道来源
export function channels(){
  return request({
    url:'/tienchin/business/channels',
    method:'get'
  })
}

//活动
export function actBus(id){
  return request({
    url:'/tienchin/business/activity/'+id,
    method:'get'
  })
}
//删除
export function delBus(id){
  return request({
    url:'/tienchin/business/'+id,
    method:'delete'
  })
}

//更新
export function updatedBus(id) {
  return request({
    url:'/tienchin/business/summary/'+id,
    method:'get'
  })
}

//更新
export function upBus(data){
  return request({
    url:'/tienchin/business',
    method:'put',
    data
  })
}
